-- GENERATED SPELL FOR [Emerald Lasher] --


function spell0_27254(pUnit, Event) --@Dream Lash,n/a--
pUnit:FullCastSpellOnTarget(51901,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27254', 500, 1)
end

function Sorts_27254(pUnit, Event)
local choix_sorts_27254 = math.random(0, 0)
if choix_sorts_27254 == 0 then
pUnit:RegisterEvent('spell0_27254', 1, 1)
end
end

function mob27254_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27254', math.random(1500, 3000), 1)
end

function mob27254_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27254_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27254_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27254, 1, 'mob27254_Action')
RegisterUnitEvent(27254, 2, 'mob27254_Leave')
RegisterUnitEvent(27254, 3, 'mob27254_Kill')
RegisterUnitEvent(27254, 4, 'mob27254_Die')
